package com.sky.service;


import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import java.time.LocalDate;

/**
 * The interface Report service.
 */
public interface ReportService {

    /**
     * 查询指定时间区域内的营业额数据
     *
     * @param begin the begin
     * @param end   the end
     * @return the turnover statistics
     */
    TurnoverReportVO getTurnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * 用户数据统计
     *
     * @param begin the begin
     * @param end   the end
     * @return the user statistics
     */
    UserReportVO getUserStatistics(LocalDate begin, LocalDate end);

    /**
     * 订单数据统计
     *
     * @param begin the begin
     * @param end   the end
     * @return the orders statistics
     */
    OrderReportVO getOrdersStatistics(LocalDate begin, LocalDate end);

    /**
     * 销量排名top10
     *
     * @param begin the begin
     * @param end   the end
     * @return the sales top 10
     */
    SalesTop10ReportVO getSalesTop10(LocalDate begin, LocalDate end);
}
